package com.aoxin.model.opm;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 组织机构
 * 
 * @author Melody
 * @date 2018年3月20日 下午4:29:28
 */
public class SlfOrg {
	/**
	 * 机构ID
	 */
	private Integer orgId;
	/**
	 * 机构名称
	 */
	private String name;
	/**
	 * 父ID
	 */
	private Integer partId;
	/**
	 * 机构类型
	 */
	private Integer type;
	/**
	 * 地区编码
	 */
	private String addrCode;
	/**
	 * 序号
	 */
	private Integer sequence;
	/**
	 * 状态
	 */
	private Integer state;
	/**
	 * 创建时间
	 */
	private Date createDate;
	/**
	 * 显示的名称
	 */
	private String label;
	/**
	 * 值
	 */
	private String value;
	/**
	 * key
	 */
	private String key;
	/**
	 * 子节点
	 */
	@JsonInclude(Include.NON_NULL)
	private List<SlfOrg> children;
	
	

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Integer getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Integer getPartId() {
		return partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getAddrCode() {
		return addrCode;
	}

	public void setAddrCode(String addrCode) {
		this.addrCode = addrCode == null ? null : addrCode.trim();
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public List<SlfOrg> getChildren() {
		return children;
	}

	public void setChildren(List<SlfOrg> children) {
		this.children = children;
	}
}